<template>
  <div id="nav">
    <router-link to="/films">
      <i class="iconfont icon-dianying"></i>
      <p>电影</p>
    </router-link>
    <router-link to="/article">
      <i class="iconfont icon-bianjiwenzhang_huaban"></i>
      <p>文章</p>
    </router-link>
    <router-link to="/center">
      <i class="iconfont icon-icon03"></i>
      <p>我的</p>
    </router-link>
  </div>
</template>
<script>
export default {
    // mounted(){
    //     console.log(this.$route);
    // }
};
</script>

<style scoped>
.router-link-active {
  color: orangered;
}
#nav {
  display: flex;
  width: 100%;
  height: 80px;
  align-items: center;
  justify-content: space-around;
  background-color: #efefef;
  border: 1px solid #333;
  position: fixed;
  left: 0;
  bottom: 0;
}
#nav a {
  font-size: 30px;
  text-align: center;
}
.iconfont {
  font-size: 40px;
}
</style>
